package com.freewater.springboot.demo.ioc.lazyinit;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class SimpleAspect {

    @Pointcut("execution(* com.freewater.springboot.demo.ioc.lazyinit.SomeService.*(..))")
    public void allMethod() {

    }

    @Before(value = "allMethod()")
    public void beforeAdvice(JoinPoint joinPoint) {
        System.out.println("before advice");
    }
}
